package br.com.projeto.model.persistencia;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EntityManagerHelper {

	private static EntityManagerFactory f = null;
	
	static {
		
		f = Persistence.createEntityManagerFactory("emvista");
		
	}

	public static EntityManager getEntityManager() {
		
		return f.createEntityManager();
		
	}
	
}
